//
//  LoadVcManager.m
//  YSZC
//
//  Created by 张斌 on 16/4/12.
//  Copyright © 2016年 YueShiKeJi. All rights reserved.
//

#import "LoadVcManager.h"

@implementation LoadVcManager
+(instancetype)sharedmanager{
    
    static LoadVcManager* instance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[LoadVcManager alloc] init];
    });
    return instance;
}

// storybord加载控制器的方法
+ (UIViewController*)sbVCWithsbname:(NSString*)sbname{
    UIStoryboard* sb = [UIStoryboard storyboardWithName:sbname bundle:[NSBundle mainBundle]];
    
    UIViewController* vc = [sb instantiateInitialViewController];
    return vc;
}
@end
